package mysample;

public class ReturnByVoidMethod {
	public static void main(String[] args) {
		ReturnByVoidMethod method = new ReturnByVoidMethod();
		method.ekranaYaz("Ali");
		String name = null;
		method.ekranaYaz(name);
	}

	public void ekranaYaz(String name) {
		if (name == null) {
			System.out.println("Merhaba");
			return;
		}
		System.out.println("Merhaba " + name);
	}
}
